/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:08:21
 * @Last Modified by: lyuan2018
 * @Last Modified time: 2020-04-02 15:46:45
 */
import { WeaTools } from 'ecCom';

const { callApi } = WeaTools;
const initUrl = '/api/email/add/emailAdd';
const signUrl = '/api/email/add/emailSignList';
const templateUrl = '/api/email/add/emailTemplateList';
const sendUrl = '/api/email/base/send';
const contactsTreeUrl = '/api/email/add/customizeContactsTree';
const ContactsTreeListUrl = '/api/email/add/customizeContactsTreeList';
const hrmgroupUrl = '/api/email/add/hrmgroup';
const contactGroupUrl = '/api/email/add/addContactGroup';
const innerGroupUrl = '/api/email/add/addInnerGroup';
const filterSetecy = '/api/email/add/filterInternalToNewByClassification';
const filterOutEmail = '/api/email/add/filterOutEmailAddressByUserid';


export default {
  getInit: params => callApi(initUrl, 'GET', params),
  getSignList: params => callApi(signUrl, 'GET', params),
  getTemplateList: params => callApi(templateUrl, 'GET', params),
  sendEmail: params => callApi(sendUrl, 'POST', params),
  getContactsTree: params => callApi(contactsTreeUrl, 'GET', params),
  getContactsTreeList: params => callApi(ContactsTreeListUrl, 'GET', params),
  getHrmGroup: params => callApi(hrmgroupUrl, 'GET', params),
  addContactGroup: params => callApi(contactGroupUrl, 'POST', params),
  addInnerGroup: params => callApi(innerGroupUrl, 'POST', params),
  filterSetecy: params => callApi(filterSetecy, 'GET', params),
  filterOutEmail: params => callApi(filterOutEmail, 'GET', params),
};

